package com.systop.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.systop.entity.SysUser;
import com.systop.domain.vo.UsersVo;
import com.systop.exception.PhoneException;

import java.util.List;

public interface SysUserService extends IService<SysUser> {

    //
    public boolean registerUser(UsersVo usersVo);

    //注册判断用户输入手机号是否存在
    public void checkMobileUnique(String userPhone) throws PhoneException;

    public SysUser findUserByUserCode(String userCode);
    //根据账号密码验证登录
    // public SysUser findUserByCodeAndPwd(String usercode, String userpass);
    public SysUser findUserByCodeAndPwd(SysUser sysUser);

    //查询全部用户信息
    public List<SysUser> findAllUser(SysUser sysUser);
    //查询用户数量
    public int countAllUser(SysUser sysUser);

    //查询收货人
    public int findConsigneeByUserId(SysUser sysUser);
    //删除用户
    public int delUser(SysUser sysUser);

    //添加用户查重
    public int findByUserCode(SysUser sysUser);
    //添加用户
    public int addUser(SysUser sysUser);

    //更新用户
    public int udpUser(SysUser sysUser);
}
